package javaBase.nowcoder.HJ96_A_表示数字;

import java.io.*;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str = "";
        str = br.readLine();
        char c[] = str.toCharArray();
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < c.length; i++) {
            if (Character.isDigit(c[i])) {
                sb.append("*");
                sb.append(c[i]);
                for (int j = i + 1; j < c.length; j++) {
                    if(Character.isDigit(c[j])){
                        sb.append(c[j]);
                        i++;
                    }else{
                        break;
                    }
                }
                sb.append("*");
            } else {
                sb.append(c[i]);
            }
        }
        System.out.println(sb);
    }
}
